<?php
// http://www.panoramio.com/map/get_panoramas.php?order=popularity&set=public&from=0&to=20&minx=-180&miny=-90&maxx=180&maxy=90&size=medium

// for "order" you can use:
//  popularity
//  upload_date

// for "set" you can use:
//  public (popular photos)
//  full (all photos)
//  user ID number

// for "size" you can use:
//  original
//  medium (default value)
//  small
//  thumbnail
//  square
//  mini_square


$minx = $_GET['minx'];
$maxx = $_GET['maxx'];
$miny = $_GET['miny'];
$maxy = $_GET['maxy'];
$size = $_GET['size'];

echo file_get_contents("http://www.panoramio.com/map/get_panoramas.php?order=popularity&set=public&from=0&to=20&minx=" . $minx  .
		       "&miny=" . $miny . "&maxx=" . $maxx . "&maxy=" . $maxy ."&size=" . $size);
?>